package com.bdqn.demo.service;

import com.bdqn.demo.pojo.SysUser;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import java.util.List;
import java.util.Map;

/**
 * SysUserService
 *
 * @author f
 * @since 2021/11/24
 */
public interface SysUserService {
    List<SysUser> findByUsrName(String usrName);

    List<SysUser> findByUsrNameAndUsrPasswordAndUsrRoleIdOrderByUsrId(String usrName, String usrPassword, Long usrRoleId);

    List<SysUser> findByRoleId(Long roleId);

    List<SysUser> findByRoleIdNative(Long roleId);
    
    Page<SysUser> findPageByUsrRoleId(Long roleId, Pageable pageable);

    List<SysUser> findByRoleIdParam(Long roleId);

    int modifyNameById(String usrName, Long usrId);

    Page<SysUser> findPageByMap(Map param, Pageable pageable);

}
